<?php
/***************************************************************
*  Copyright notice
*  (c) 2009, jianyuzhu@gmail.com
*  All rights reserved
*  This script is part of the PPEMI project.
***************************************************************/

//
if( file_exists('stop.php') ) {
	include_once('stop.php');
}

//
require(dirname(dirname(__FILE__)) . '/includes/application_top.php');

//
$categories = array();
$categories[] = array('link' => 'vlnyl_windows', 'name' => 'Vlnyl Windows');
$categories[] = array('link' => 'patlo_doors', 'name' => 'Patlo Doors');
$categories[] = array('link' => 'entry_doors', 'name' => 'Entry Doors');
$categories[] = array('link' => 'french_door', 'name' => 'French Door');

//
for($i=0, $n=sizeof($categories); $i<$n; $i++) {
	$d = array(
		'categories_owner' => '1',
		'categories_link' => $categories[$i]['link'],
		'categories_name' => $categories[$i]['name'],
		'categories_status' => '1',
			);
	$adb->insertA('pp_products_categories', $d);
	
	//
	$d = array(
		'categories_owner' => '2',
		'categories_link' => $categories[$i]['link'],
		'categories_name' => $categories[$i]['name'],
		'categories_status' => '1',
			);
	$adb->insertA('pp_products_categories', $d);
}

//
echo 'OK';
//
?>